home *** CD-ROM | disk | FTP | other *** search
- !!Script
- // Copyright ⌐ 2001 - Modelworks Software
-
- /**
- @Tool: Main tools~defines mini toolbars for buttons on the
- main toolbar
- @Summary: Main tools~defines mini toolbars
- */
-
- var gOutput = getOutput();
-
-
- function DoCommand()
- {
- var toolBar = newToolBar("Main:File-edit tools", "main.file-edit");
- toolBar.restoreState();
-
- var toolBar = newToolBar("Main:Undo-redo tools", "main.undo-redo");
- toolBar.restoreState();
-
- var toolBar = newToolBar("Main:Find tools", "main.find");
- toolBar.restoreState();
-
- var toolBar = newToolBar("Main:Browse tools", "main.browse");
- toolBar.restoreState();
-
- var toolBar = newToolBar("Main:JDK Build tools", "main.build");
- SetupJDKToolBar(toolBar);
- toolBar.restoreState();
-
- var toolBar = newToolBar("Main:View tools", "main.view");
- toolBar.restoreState();
- }
-
- function SetupJDKToolBar(toolbar)
- {
- if (toolbar)
- {
- // Set up the compile tool button -- the grinder icon
- toolbar.setButton(0,
- "\\Java\\JDK\\compile.script",
- "Compile a java file using Sun's Java compiler",
- "JDK Compiler", true);
-
- toolbar.setButton(1,
- "\\Java\\JDK\\runApplication.script",
- "Run an application using Sun's Java interpreter",
- "JDK Interpreter");
-
- toolbar.setButton(2,
- "\\Java\\JDK\\testApplet.script",
- "Test an applet using Sun's Java appletviewer",
- "JDK Test Applet");
-
- toolbar.setButton(3,
- "\\Application\\runHtmlBrowser.script",
- "Open a HTML file in the default HTML browser",
- "HTML Browser");
-
- toolbar.setButton(4,
- "\\Java\\JDK\\debugApplication.script",
- "Debug an application using Sun's Java debugger",
- "JDK Debug Application");
- }
- }
-
- !!/Script
-